<DIV  align='center'>
  <DIV id='admin_top'>
  	<B><DIV id='titreZoneSiteSwap'>Editer un Siteswap</DIV></B>
  </DIV>
  <DIV id='admin_content_back'>
    <DIV id='admin_content'>
      <FORM method="POST" action="javascript:validSiteSwap();">
  			<TABLE WIDTH='100%'>
  			<TR>
  				<TD WIDTH="200px" valign="top"><B>Nombre d'objets :</B></TD>
  				<TD><INPUT ID="idNbObject" TYPE="text" NAME="nb_object" SIZE="40" ></TD>
  			</TR>
  			<TR>
  				<TD WIDTH="200px" valign="top"><B>Nom du Siteswap :</B></TD>
  				<TD><INPUT ID="idNom" TYPE="text" NAME="name" SIZE="40" ></TD>
  			</TR>
  			<TR>
  				<TD WIDTH="200px" valign="top"><B>Code Siteswap :</B></TD>
  				<TD><INPUT ID="idCodeSSwap" TYPE="text" NAME="siteswap" SIZE="40" ></TD>
  			</TR>
  				<TR>
  				<TD WIDTH="200px" valign="top"><B>Code Siteswap à envoyer au lecteur !<br><A HREF="http://jugglinglab.sourceforge.net/html/phpinfo.html" target="_blank" class="blanc">(Infos ici)</A> :</B></TD>
  				<TD><INPUT ID="idCodePhp" TYPE="text" NAME="code_php" SIZE="40" ></TD>
  			</TR>
  			<TR>
  				<TD WIDTH="200px" valign="top"><B>Commentaires :</B></TD>
  				<TD><TEXTAREA ID="idComments" NAME="commentaire" COLS="60"></TEXTAREA></TD>
  			</TR>
  			<TR>
  				<TD WIDTH="200px" valign="top"><B>Difficulté  (de 1 à 5) :</B></TD>
  				<TD><INPUT ID="idDifficulte" TYPE="text" NAME="diff" SIZE="40" ></TD>
  			</TR>
  			<TR><TD colspan=2 align="center">
  			<BR><INPUT TYPE="Submit" Value="Valider"><BR><BR>
  			</TD></TR>
  			</TABLE>
  		</FORM>
    </DIV>
  </DIV>
  <DIV id='admin_content_end'></DIV>
</DIV>
<BR />

<TABLE WIDTH="100%">
	<TD align="center"><A HREF="index.php?page=siteswap" class='blanc'>Revenir à la liste des siteswap</A></TD>
</TABLE>

<?
  
	if(!session_is_registered('login')) {
		 echo "<p>Vous devez ?re enregistr?pour acc?er ?cette page !</P>";
	 } else {	 
		 
  	$id_sswap = -1;
  	$type_ssawp = "solo";
  	if (isset($_GET['id_sswap'])){
  	   $id_sswap = $_GET['id_sswap'];
    }
    
    if (isset($_GET['type_sswap'])){
  	   $type_sswap = $_GET['type_sswap'];
    }
    
    echo "\n<script language='Javascript'>\n";
    echo "manageLayout($id_sswap, '$type_sswap');\n";
    echo "getSiteSwap($id_sswap);\n";
    echo "</script>";
	
  }
?>
